import Ax from './api';

export default {
  modelAdd: (param = {}) => Ax.put(`/model/add`, param),
  modelEdit: (param = {}) => Ax.put(`/model/edit`, param),
  modelDelete: (query = {}) => Ax.delete(`/model/delete?_id=${query._id}`),
  modelList: (param = {}) => Ax.post(`/model/list`, param),
  modelAll: (param = {}) => Ax.post(`/model/all`, param),
  modelDetail: (query = {}) => Ax.get(`/model/detail?_id=${query._id}`),
};
